//jQ start
$(function (){
    $("#date").datetime({
        type:"date",
        value:[2019,9,31],
        success:function(res){
            console.log(res)
        }
    })
    $("#time").datetime({
        type:"time",
        value:[12,28]
    })
    $("#datetime").datetime({
        type:"datetime",
        value:[2019,7,15,15,30]
    })
    window.onload=function(){
        var totleTp = 0;
        var tppiao = document.getElementsByClassName("tppiao");
        for(var i=0;i<tppiao.length;i++){totleTp+=parseInt(tppiao[i].innerHTML);}
        var tpdetial = document.getElementsByClassName("tpdetial");
        for(var i=0;i<tpdetial.length;i++){var mun = parseInt(tpdetial[i].getElementsByClassName("tppiao")[0].innerHTML);var bfb = (mun*100/totleTp).toFixed(2)+"%";tpdetial[i].getElementsByClassName("tppercent")[0].innerHTML = bfb;
        }
    }
    if(window.location.href.indexOf("udsid=")>-1){
        $("#ctlNext").on("click",function(){
            console.log("执行成功！")
            meteor.track("form", {convert_id: "1641358861914125"})
        })
    }
})